package com.xtravel.tweet.api;

import com.google.gson.Gson;
import com.xtravel.common.api.BaseRequest;


/**
 * Created by Administrator on 2015/8/27.
 */
public class AdvertisementRequest extends BaseRequest {

    public AdvertiseJson get(int type, int count) {
        String response = api(String.format("/advertisement/%s/%s", type, count));
        Gson gson = new Gson();
        AdvertiseJson json = gson.fromJson(response, AdvertiseJson.class);
        return json;
    }

}
